<?php
namespace app\index\controller;

use think\Controller;
use think\Session;
class Allow extends Controller
{
	//controller初始化方法
    public function _initialize(){
    	//检测session是否存在
    	if(!Session::get('uid')){
    		$this->error('请先登录前台','/homelogin/login');
    	}
    }
}
